<template>
	<div class="u-page">
		<section class="aui-flexView">
			<!-- <header class="aui-navBar aui-navBar-fixed">
				<a href="javascript:;" class="aui-navBar-item">
					<i class="icon icon-return"></i>
				</a>
				<div class="aui-center">
					<span class="aui-center-title">排行榜</span>
				</div>
				<a href="javascript:;" class="aui-navBar-item">
					<i class="icon icon-more"></i>
				</a>
			</header> -->
			<section class="aui-scrollView">
				<!-- <div>
					<u-image width="100%" height="300rpx" :src="banner"></u-image>
				</div> -->
				<div style="position:relative;width:100%;height:300rpx;">
					<u-image width="100%" height="300rpx" :src="banner"></u-image>
					<div
						style="position:absolute;z-indent: 2;left: 40rpx;top: 100rpx;width: 450rpx;font-weight: 550;color: #ffffff;">
						{{Tips}}
					</div>
				</div>

				<div class="aui-tab" data-ydui-tab>
					<div class="u-border-bottom" style="height: 90rpx;">
						<u-tabs :list="list" :is-scroll="false" :current="current" bar-width="60" @change="change">
						</u-tabs>
					</div>
					<div class="tab-panel">
						<!-- 未验收 -->
						<div v-if="current == 0">
							<div class="tab-panel-item tab-active" v-if="Members_A&&Members_A.length>0">
								<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in Members_A"
									:key="item.WF_OrUnid" @click="click" @open="open" :options="options">
									<div class="aui-flex b-line" @click="toDetails(item)">
										<div class="aui-ranking-text">
											<em>{{index+1}}</em>
										</div>
										<div class="aui-ranking-img" @click.stop="toEvaluationInfo(item)">
											<img :src="item.avatarUrl" alt="">
											<u-image width="110rpx" height="110rpx" :src="item.avatarUrl"
												shape="square"></u-image>
										</div>
										<div class="aui-ranking-name aui-flex-box">
											<h2>{{item.PartnerName}}</h2>
											<p>{{item.Content?item.Content:""}}</p>
										</div>
										<div class="aui-ranking-icon">
											<img src="img/icon.png" alt="">
										</div>
									</div>
								</u-swipe-action>
							</div>
							<div class="u-pt-50 u-pb-50" style="margin: 0 auto;" v-else>
								<u-empty text="暂无数据" mode="data"></u-empty>
							</div>
						</div>
						<!-- 验收中 -->
						<div v-if="current == 1">
							<div class="tab-panel-item tab-active" v-if="Members_B&&Members_B.length>0">
								<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in Members_B"
									:key="item.WF_OrUnid" @click="click" @open="open" :options="options">
									<div class="aui-flex b-line" @click="toDetails(item)">
										<div class="aui-ranking-text">
											<em>{{index+1}}</em>
										</div>
										<div class="aui-ranking-img" @click.stop="toEvaluationInfo(item)">
											<img :src="item.avatarUrl" alt="">
											<u-image width="110rpx" height="110rpx" :src="item.avatarUrl"
												shape="square"></u-image>
										</div>
										<div class="aui-ranking-name aui-flex-box">
											<h2>{{item.PartnerName}}</h2>
											<p>{{item.Content?item.Content:""}}</p>
										</div>
										<div class="aui-ranking-icon">
											<img src="img/icon.png" alt="">
										</div>
									</div>
								</u-swipe-action>
							</div>
							<div class="u-pt-50 u-pb-50" style="margin: 0 auto;" v-else>
								<u-empty text="暂无数据" mode="data"></u-empty>
							</div>
						</div>
						<!-- 已验收 -->
						<div v-if="current == 2">
							<div class="tab-panel-item tab-active" v-if="Members_C&&Members_C.length>0">
								<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in Members_C"
									:key="item.WF_OrUnid" @click="click" @open="open" :options="options">
									<div class="aui-flex b-line" @click="toDetails(item)">
										<div class="aui-ranking-text">
											<em>{{index+1}}</em>
										</div>
										<div class="aui-ranking-img" @click.stop="toEvaluationInfo(item)">
											<img :src="item.avatarUrl" alt="">
											<u-image width="110rpx" height="110rpx" :src="item.avatarUrl"
												shape="square"></u-image>
										</div>
										<div class="aui-ranking-name aui-flex-box">
											<h2>{{item.PartnerName}}</h2>
											<p>{{item.Content?item.Content:""}}</p>
										</div>
										<div class="aui-ranking-icon">
											<img src="img/icon.png" alt="">
										</div>
									</div>
								</u-swipe-action>
							</div>
							<div class="u-pt-50 u-pb-50" style="margin: 0 auto;" v-else>
								<u-empty text="暂无数据" mode="data"></u-empty>
							</div>
						</div>
						<!-- 已作废 -->
						<div v-if="current == 3">
							<div class="tab-panel-item tab-active" v-if="Members_D&&Members_D.length>0">
								<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in Members_D"
									:key="item.WF_OrUnid" @click="click" @open="open" :options="options">
									<div class="aui-flex b-line">
										<div class="aui-ranking-text">
											<em>{{index+1}}</em>
										</div>
										<div class="aui-ranking-img" @click.stop="toEvaluationInfo(item)">
											<img :src="item.avatarUrl" alt="">
											<u-image width="110rpx" height="110rpx" :src="item.avatarUrl"
												shape="square"></u-image>
										</div>
										<div class="aui-ranking-name aui-flex-box">
											<h2>{{item.PartnerName}}</h2>
											<p>{{item.Content?item.Content:""}}</p>
										</div>
										<div class="aui-ranking-icon">
											<img src="img/icon.png" alt="">
										</div>
									</div>
								</u-swipe-action>
							</div>
							<div class="u-pt-50 u-pb-50" style="margin: 0 auto;" v-else>
								<u-empty text="暂无数据" mode="data"></u-empty>
							</div>
						</div>
					</div>
				</div>

			</section>
		</section>

		<!-- 评级 -->
		<u-modal ref="uModal" title="评级" v-model="show" :mask-close-able="true" show-cancel-button confirm-text="提交"
			@confirm="UpdateLevel">
			<div class="u-p-20">
				<div style="float: left;">测评师等级：</div>
				<div>
					<u-input input-align="right" type="select" placeholder="请选择" @click="EvaluationGrade_Show = true"
						v-model="EvaluationGrade"></u-input>
				</div>
				<u-select :list="EvaluationGradeRange" @confirm="(event) => (EvaluationGrade = event[0].value)"
					v-model="EvaluationGrade_Show"></u-select>
			</div>
		</u-modal>

		<!-- 黑名单 -->
		<u-modal v-model="Blacklist_Show" :mask-close-able="true" confirm-text="加入黑名单" show-cancel-button
			cancel-text="移除黑名单" :content="Blacklist_Show_Text" @confirm="addToBlacklist" @cancel="removeToBlacklist">
		</u-modal>

	</div>
</template>

<script>
	import globalData from "@/globalData";
	export default {
		data() {
			return {
				// banner: "https://dev.openea.net/linkey/bpm/appfile/ProductPromote/RatingLeaderboard.png",
				banner: "https://" + globalData.CosBucket + ".cos." + globalData.CosRegion +
					".myqcloud.com/static/image/RatingLeaderboard.png",
				docUnid: "",
				list: [{
						name: '未验收'
					},
					{
						name: '验收中'
					},
					{
						name: '已验收',
					},
					{
						name: '已作废',
					}
				],
				current: 0,
				tab: 'A',
				keyword: '',
				pageNum_A: 1,
				pageSize_A: 10,
				Members_A: [],
				pageNum_B: 1,
				pageSize_B: 10,
				Members_B: [],
				pageNum_C: 1,
				pageSize_C: 10,
				Members_C: [],
				pageNum_D: 1,
				pageSize_D: 10,
				Members_D: [],
				Tips: '',
				options: [{
						text: '评级', // 加入黑名单
						style: {
							backgroundColor: '#007aff'
						}
					},
					{
						text: '黑名单', // 移出黑名单
						style: {
							backgroundColor: '#dd524d'
						}
					}
				],
				show: false,
				EvaluationGrade_Show: false,
				EvaluationGradeRange: [{
						value: "A",
						label: "A",
					},
					{
						value: "B",
						label: "B",
					},
					{
						value: "C",
						label: "C",
					},
					{
						value: "D",
						label: "D",
					},
					{
						value: "E",
						label: "E",
					},
					{
						value: "F",
						label: "F",
					}
				],
				EvaluationGrade: '', // 测评师等级要求
				Blacklist_Show: false, // 黑名单弹窗
				Blacklist_Show_Text: '',
			}
		},

		onLoad(options) {
			if (this.isNotNull(options.docUnid)) {
				this.docUnid = options.docUnid
				this.initMembersData(this.docUnid)
			}
		},

		onPullDownRefresh() {
			if (this.current == 0) {
				this.pageNum_A = 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 1) {
				this.pageNum_B = 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 2) {
				this.pageNum_C = 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 3) {
				this.pageNum_D = 1
				this.initMembersData(this.docUnid)
			}
			setTimeout(() => {
				// 停止Loading
				uni.stopPullDownRefresh();
			}, 1000)
		},

		onReachBottom() {
			if (this.current == 0) {
				this.pageNum_A += 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 1) {
				this.pageNum_B += 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 2) {
				this.pageNum_C += 1
				this.initMembersData(this.docUnid)
			} else if (this.current == 3) {
				this.pageNum_D += 1
				this.initMembersData(this.docUnid)
			}
		},

		methods: {
			/**
			 * 初始化数据
			 */
			async initMembersData(docUnid) {
				let pageNum = this.pageNum_A
				let pageSize = this.pageSize_A
				this.tab = 'join'
				if (this.current == 1) {
					pageNum = this.pageNum_B
					pageSize = this.pageSize_B
					this.tab = 'submit'
				}
				if (this.current == 2) {
					pageNum = this.pageNum_C
					pageSize = this.pageSize_C
					this.tab = 'pass'
				}
				if (this.current == 3) {
					pageNum = this.pageNum_D
					pageSize = this.pageSize_D
					this.tab = 'discard'
				}
				let result = await this.$u.api.unifyRequest({
					appid: 'ProductPromote',
					wf_num: 'R_ProductPromote_BL024',
					pageNum: pageNum,
					pageSize: pageSize,
					docUnid: docUnid,
					tab: this.tab,
					searchStr: this.keyword,
					loading: false // 默认发起请求会有一个全局的Loading，设置false可去掉
				});
				if (result.code == 200) {
					this.Tips = result.Title
					if (this.current == 1) {
						if (this.pageNum_B != 1) {
							this.Members_B = this.Members_B.concat(result.data)
						} else {
							this.Members_B = result.data
						}
					} else if (this.current == 2) {
						if (this.pageNum_C != 1) {
							this.Members_C = this.Members_C.concat(result.data)
						} else {
							this.Members_C = result.data
						}
					} else if (this.current == 3) {
						if (this.pageNum_D != 1) {
							this.Members_D = this.Members_D.concat(result.data)
						} else {
							this.Members_D = result.data
						}
					} else {
						if (this.pageNum_A != 1) {
							this.Members_A = this.Members_A.concat(result.data)
						} else {
							this.Members_A = result.data
						}
						this.initAttrShow(this.Members_A)
					}
				}
			},

			/**
			 * 初始化用户的排名样式
			 */
			viewLavel() {
				if (this.members.length > 0) {
					let index = 0
					for (let i in this.members) {
						if (index == 0) {
							this.members[i].class = 'aui-ranking-text one'
						} else if (index == 1) {
							this.members[i].class = 'aui-ranking-text two'
						} else if (index == 2) {
							this.members[i].class = 'aui-ranking-text three'
						} else {
							this.members[i].class = 'aui-ranking-text'
						}
						index++
					}
				}
			},

			/**
			 * 切换选项卡
			 */
			change(index) {
				this.current = index;
				this.initMembersData(this.docUnid)
			},

			/**
			 * 跳转到成果页面
			 */
			toDetails(item) {
				this.$u.route('/pages_private_scene2/ProductPromote/SubmitResults?docUnid=' + item.WF_OrUnid +
					'&ReadOnly=1&userId=' + item.Partnerid)
			},

			/** 
			 * 跳转到测评师资料页面
			 */
			toEvaluationInfo(item) {
				this.$u.route('/pages_tabbar_contact/personal_contact/EvaluatorInfo_Readonly?Partnerid=' + item
					.Partnerid)
			},

			/** 
			 * 初始化show属性
			 */
			initAttrShow(arr_data) {
				for (let i in arr_data) {
					arr_data[i].show = false
				}
			},

			// 左滑事件
			click(index, index1) {
				let option_data = this.getCurrentData()
				this.BlackList_Option_User = option_data[index]
				if (index1 == 1) {
					this.Blacklist_Show_Text = "请对" + this.BlackList_Option_User.PartnerName + "用户进行操作。"
					this.Blacklist_Show = true
				} else {
					this.EvaluationGrade = this.BlackList_Option_User.EvaluationGrade;
					this.show = true;
				}
			},
			// 如果打开一个的时候，不需要关闭其他，则无需实现本方法
			open(index) {
				// 先将正在被操作的swipeAction标记为打开状态，否则由于props的特性限制，
				// 原本为'false'，再次设置为'false'会无效
				let option_data = this.getCurrentData()
				option_data[index].show = true;
				option_data.map((val, idx) => {
					if (index != idx) option_data[idx].show = false;
				})
			},

			/**
			 * 获取当前tab操作的成员数据
			 */
			getCurrentData() {
				switch (this.current) {
					case 1:
						return this.Members_B;
						break;
					case 2:
						return this.Members_C;
						break;
					case 3:
						return this.Members_D;
						break;
					default:
						return this.Members_A;
						break;
				}
			},

			/**
			 * 修改测评师等级
			 */
			async UpdateLevel() {
				let result = await this.$u.api.unifyRequest({
					appid: 'ProductPromote',
					wf_num: 'R_ProductPromote_BL029',
					Partnerid: this.BlackList_Option_User.Partnerid,
					EvaluationGrade: this.EvaluationGrade,
					loading: true // 默认发起请求会有一个全局的Loading，设置false可去掉
				});
				if (result.code == 200) {
					this.showMSG('none', result.msg)
				} else {
					this.showMSG('none', result.msg)
				}
			},

			/**
			 * 加入黑名单
			 */
			async addToBlacklist() {
				let result = await this.$u.api.unifyRequest({
					appid: 'Review',
					wf_num: 'R_Review_BL017',
					Member: this.BlackList_Option_User.Partnerid,
					MemberName: this.BlackList_Option_User.PartnerName,
					ReviewMainDocUnid: this.BlackList_Option_User.WF_OrUnid,
					loading: true // 默认发起请求会有一个全局的Loading，设置false可去掉
				});
				if (result.code == 200) {
					this.showMSG('none', result.msg)
				} else {
					this.showMSG('none', result.msg)
				}
			},

			/**
			 * 移出黑名单
			 */
			async removeToBlacklist() {
				let result = await this.$u.api.unifyRequest({
					appid: 'Review',
					wf_num: 'R_Review_BL018',
					Member: this.BlackList_Option_User.Partnerid,
					ReviewMainDocUnid: this.BlackList_Option_User.WF_OrUnid,
					loading: true // 默认发起请求会有一个全局的Loading，设置false可去掉
				});
				if (result.code == 200) {
					this.showMSG('none', result.msg)
				} else {
					this.showMSG('none', result.msg)
				}
			}

		}
	}
</script>

<style scoped>
	html,
	body {
		color: #333;
		margin: 0;
		height: 100%;
		font-family: "Myriad Set Pro", "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		font-weight: normal;
	}

	* {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}

	a {
		text-decoration: none;
		color: #000;
	}

	a,
	label,
	button,
	input,
	select {
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	}

	img {
		width: 100%;
		height: auto;
		display: block;
		border: 0;
	}

	body {
		background: #fff;
		color: #666;
	}

	html,
	body,
	div,
	dl,
	dt,
	dd,
	ol,
	ul,
	li,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p,
	blockquote,
	pre,
	button,
	fieldset,
	form,
	input,
	legend,
	textarea,
	th,
	td {
		margin: 0;
		padding: 0;
	}

	a {
		text-decoration: none;
		color: #08acee;
	}

	button {
		outline: 0;
	}

	button,
	input,
	optgroup,
	select,
	textarea {
		margin: 0;
		font: inherit;
		color: inherit;
		outline: none;
	}

	li {
		list-style: none;
	}

	a {
		color: #666;
	}

	.clearfix::after {
		clear: both;
		content: ".";
		display: block;
		height: 0;
		visibility: hidden;
	}

	.clearfix {}

	.divHeight {
		width: 100%;
		height: 10px;
		background: #f5f7fc;
		position: relative;
		overflow: hidden;
	}

	.r-line {
		position: relative;
	}

	.r-line:after {
		content: '';
		position: absolute;
		z-index: 0;
		top: 0;
		right: 0;
		height: 100%;
		border-right: 1px solid #D9D9D9;
		-webkit-transform: scaleX(0.5);
		transform: scaleX(0.5);
		-webkit-transform-origin: 100% 0;
		transform-origin: 100% 0;
	}

	.b-line {
		position: relative;
	}

	.b-line:after {
		content: '';
		position: absolute;
		z-index: 2;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 1px;
		border-bottom: 1px solid #e2e2e2;
		-webkit-transform: scaleY(0.5);
		transform: scaleY(0.5);
		-webkit-transform-origin: 0 100%;
		transform-origin: 0 100%;
	}

	.aui-arrow {
		position: relative;
		padding-right: 0.8rem;
		color: #7f8699;
		font-size: 0.85rem;
	}

	.aui-arrow span {
		font-size: 0.8rem;
		color: #9b9b9b;
	}

	.aui-arrow:after {
		content: " ";
		display: inline-block;
		height: 6px;
		width: 6px;
		border-width: 2px 2px 0 0;
		border-color: #848484;
		border-style: solid;
		-webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
		transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
		position: relative;
		top: -2px;
		position: absolute;
		top: 50%;
		margin-top: -6px;
		right: 2px;
		border-radius: 1px;
	}

	.aui-flex {
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		padding: 15px;
		position: relative;
	}

	.aui-flex-box {
		-webkit-box-flex: 1;
		-webkit-flex: 1;
		flex: 1;
		min-width: 0;
		font-size: 14px;
		color: #333;
	}

	/* 必要布局样式css */
	.aui-flexView {
		width: 100%;
		height: 100%;
		margin: 0 auto;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.aui-scrollView {
		width: 100%;
		height: 100%;
		-webkit-box-flex: 1;
		-webkit-flex: 1;
		-ms-flex: 1;
		flex: 1;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		position: relative;
		padding-bottom: 10px;
	}

	.aui-navBar {
		height: 44px;
		position: relative;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		z-index: 102;
		background: #4e85fd;
	}

	.aui-navBar-item {
		height: 44px;
		min-width: 15%;
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 15%;
		-ms-flex: 0 0 15%;
		flex: 0 0 15%;
		padding: 0 0.9rem;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		font-size: 0.7rem;
		white-space: nowrap;
		overflow: hidden;
		color: #808080;
		position: relative;
	}

	.aui-navBar-item:first-child {
		-webkit-box-ordinal-group: 2;
		-webkit-order: 1;
		-ms-flex-order: 1;
		order: 1;
		margin-right: -25%;
		font-size: 0.9rem;
		font-weight: bold;
	}

	.aui-navBar-item:last-child {
		-webkit-box-ordinal-group: 4;
		-webkit-order: 3;
		-ms-flex-order: 3;
		order: 3;
		-webkit-box-pack: end;
		-webkit-justify-content: flex-end;
		-ms-flex-pack: end;
		justify-content: flex-end;
		font-size: 14px;
		color: #333333;
	}

	.aui-center {
		-webkit-box-ordinal-group: 3;
		-webkit-order: 2;
		-ms-flex-order: 2;
		order: 2;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		-ms-flex-pack: center;
		justify-content: center;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		height: 44px;
		width: 80%;
		margin-left: 22%;
	}

	.aui-center-title {
		text-align: center;
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
		display: block;
		text-overflow: ellipsis;
		font-size: 1rem;
		color: #fff;
	}

	.icon {
		width: 19px;
		height: 19px;
		display: block;
		border: none;
		float: left;
		background-size: 19px;
		background-repeat: no-repeat;
	}

	.aui-flex-box h1 {
		color: #303741;
		font-weight: 500;
		font-size: 1rem;
		overflow: hidden;
	}

	.aui-flex-box h2 {
		color: #4e84fd;
		font-weight: 500;
		font-size: 1rem;
		margin-bottom: 0.3rem;
	}

	.aui-flex-box p {
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		word-break: break-all;
		text-overflow: ellipsis;
		font-size: 0.9rem;
		margin-bottom: 0.1rem;
		color: #939393;
	}

	.aui-flex-box h3 {
		font-size: 0.9rem;
		color: #8a8a8a;
		font-weight: normal;
		width: 100%;
		overflow: hidden;
		margin-bottom: 0.3rem;
	}

	.aui-palace {
		padding: 0.6rem 0.8rem;
		position: relative;
		overflow: hidden;
		background: white;
	}

	.aui-palace-grid {
		position: relative;
		float: left;
		padding: 1px;
		width: 25%;
		box-sizing: border-box;
		margin: 10px 0;
	}

	.aui-palace-grid img {
		width: 95%;
		margin: 0 auto;
	}

	.aui-palace-grid p {
		text-align: center;
		font-size: 12px;
		color: #919191;
	}



	.tab-nav {
		height: 45px;
		line-height: 45px;
		display: block;
		position: relative;
		background: #fff;
		z-index: 1;
		width: 100%;
		margin: 0 auto;
	}

	.tab-nav-item {
		height: 45px;
		line-height: 45px;
		position: relative;
		text-align: center;
		color: #585858;
		font-size: 0.9rem;
		display: block;
		float: left;
		width: 25%;
	}

	.tab-nav-item.tab-active {
		/* background-color: #51bd03; */
	}

	.tab-nav-item.tab-active a {
		color: #4e84fd;
		font-size: 0.95rem;
	}

	.tab-nav-item a {
		display: inherit;
		font-size: 0.95rem;
		color: #333;
	}

	.tab-panel {
		position: relative;
		overflow: hidden;
	}

	.tab-panel .tab-panel-item {
		width: 100%;
		position: absolute;
		top: 0;
		-webkit-transform: translateX(-100%);
		transform: translateX(-100%);
	}

	.tab-panel .tab-panel-item.tab-active~.tab-panel-item {
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}

	.tab-panel .tab-panel-item.tab-active {
		position: relative;
		-webkit-transition: -webkit-transform .15s;
		transition: -webkit-transform .15s;
		transition: transform .15s;
		transition: transform .15s, -webkit-transform .15s;
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}

	.tab-nav-item.tab-active:before {
		content: '';
		width: 50%;
		height: 3px;
		position: absolute;
		left: 50%;
		bottom: 0;
		margin-left: -25%;
		z-index: 4;
		border-radius: 100px;
		background-color: #4e84fd;
	}

	.icon-return {
		background-image: url('');

	}

	.icon-more {
		background-image: url('');
	}

	.aui-ranking-text em {
		background: #cfe4ff;
		width: 22px;
		height: 22px;
		line-height: 22px;
		color: #4e84fd;
		font-size: 16px;
		border-radius: 100px;
		text-align: center;
		font-style: normal;
		display: block;
	}

	.aui-ranking-img {
		width: 55px;
		height: 55px;
		border-radius: 100px;
		overflow: hidden;
		margin: 0 12px 0 8px;
	}


	.aui-ranking-text {
		width: 30px;
	}

	.aui-ranking-num {
		color: #ff703e;
		font-size: 22px;
	}

	.aui-ranking-icon {
		width: 40px;
	}

	.tab-panel-item .b-line:after {
		width: 90%;
		left: 20px;
	}

	.one em {
		width: 30px;
		height: 30px;
		background-size: 30px;
		background-repeat: no-repeat;
		background-image: url('');
		background-color: #fff;
		text-indent: -1111px;
	}

	.two em {
		width: 30px;
		height: 30px;
		background-size: 30px;
		background-repeat: no-repeat;
		background-image: url('');
		background-color: #fff;
		text-indent: -1111px;
	}

	.three em {
		width: 30px;
		height: 30px;
		background-size: 30px;
		background-repeat: no-repeat;
		background-image: url('');
		background-color: #fff;
		text-indent: -1111px;
	}
</style>
